package com.lvmama.pet.sync.dao;

import java.util.List;

import com.lvmama.comm.sync.pojo.SyncTemplateSql;

public interface SyncTemplateSqlMapper {

	
	public void insert(SyncTemplateSql templateSql);
	
	public int update(SyncTemplateSql templateSql);
	
	public SyncTemplateSql find(Long id);
	
	public Long findSQLIdBySort(SyncTemplateSql templateSql);
	
	public List<SyncTemplateSql> findListByTemplateId(Long templateId);
	
	public Integer findMaxSort(SyncTemplateSql templateSql);
	
	public int up(Long id);
	
	public int down(Long id);

	public List<SyncTemplateSql> findListByTargetTemplateSql(SyncTemplateSql sql);

	public void delete(Long id);

	public List<SyncTemplateSql> findTargetListByTemplateSql(SyncTemplateSql temp);

	public int findUsingCountById(Long templateSqlId);

	public void deleteByTemplateId(Long templateId);
}
